package com.wj.jiangan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wj.jiangan.pojo.Emp;
import com.wj.jiangan.pojo.vo.EmpAndPart;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * EmpMapper 接口
 * </p>
 *
 * @author wj
 * @since 2019-11-05
 */
public interface EmpMapper extends BaseMapper<Emp> {

    /**
     * 员工折线图数据
     *
     * @return
     */
    List<Map<String, Object>> getEmpLineChart(@Param("pid") Integer pid, @Param("eid") Integer eid);
    IPage<EmpAndPart> getEmpAndPart(Page page, @Param("pid") Integer pid);

    List<Emp> getEmpById();

    List<Emp> insertEmp(Emp emp);

}
